@extends('admin/layout')
@push('style')
    <style>
        .login-code {
            float: right;
        }
    </style>
@endpush
@section('body')
    <div style="width:400px; margin: auto;">
        <h1 class="text-center">找回密码</h1>
        <form class="layui-form" id="edit-form" action="{{url('public/findPass')}}">
            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">邮箱：</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" lay-verify="required" autocomplete="off" placeholder="请输入邮箱"
                           name="email">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-form-label layui-form-required">验证码</div>
                <div class="layui-input-block">
                    <div class="login-code">
                        <img class="code" id="code" src="{{captcha_src()}}"
                             onclick="this.src='{{captcha_src()}}&r='+Math.random()">
                    </div>
                    <input class="layui-input" style="width: 160px;" name="captcha" type="text" lay-verify="required"
                           autocomplete="off"
                           placeholder="验证码">
                </div>
            </div>
            <div class="layui-form-item text-right">
                <button class="layui-btn" lay-filter="ajaxForm" lay-submit>找回密码</button>
            </div>
        </form>
    </div>
@stop
